<?php

namespace App\Controllers;

use Twoir\Anroute\Attributes\Route;
use Twoir\Anroute\Attributes\Prefix;
use Twoir\Anroute\Attributes\Name;

#[Prefix("/admin")]
class UserController
{
    #[Route("/users", method: "GET")]
    #[Name("user.index")]
    public function index()
    {
        echo "List all users";
    }

    #[Route("/users/{id}", method: "GET")]
    #[Name("user.show")]
    public function show(int $id)
    {
        echo "Show user ID: $id";
    }
}
